<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告展示轮播图')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-rotationImg" class="form-control" size="50" name="row[rotationImg]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-rotationImg" class="btn btn-danger faupload" data-input-id="c-rotationImg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-rotationImg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-rotationImg" class="btn btn-primary fachoose" data-input-id="c-rotationImg" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-rotationImg"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-rotationImg"></ul>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('维度计算规则')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-dimensionRule" class="form-control selectpicker" name="row[dimensionRule]">
                {foreach name="gaugeConfig1" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" data-source="mental/category/index" data-params='{}' class="form-control selectpage" name="row[category_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Question Time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-question_time" class="form-control" name="row[question_time]" type="number" value="30">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('模板')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-template" class="form-control" name="row[template]" type="text">
             <p style="color:red;"> 1:MBTI报告模板
                2：得分模板
                3：主子纬度模板
                4：主纬度模板
            </p>
        </div>
    </div>
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control" name="row[description]" data-rule="required" cols="30" rows="5"></textarea>          
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('题目数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ex1" class="form-control" name="row[ex1]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告页数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ex2" class="form-control" name="row[ex2]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('已测人数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ex3" class="form-control" name="row[ex3]" type="text" value="">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_mode')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-pay_mode" class="form-control selectpicker" name="row[pay_mode]">
                {foreach name="payModeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('只看测试结果(标题))')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-priceTitle1" class="form-control" name="row[priceTitle1]" type="text" value="测试结果">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('只看测试结果(介绍))')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-priceInfo1" class="form-control" name="row[priceInfo1]" type="text" value="只看测试结果">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
<!--    -->
<!--    -->
<!--    <hr />-->
    
    
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('只看测试结果价格)')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-price1" class="form-control" step="0.01" name="row[price1]" type="number" value="0.00">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
<!--   <div class="form-group">-->
<!--       -->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('只看测试结果价格(原价)')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-original_price1" class="form-control" step="0.01" name="row[original_price1]" type="number" value="0.00">-->
<!--        </div>-->
<!--        -->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('完整报告(标题))')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-priceTitle" class="form-control" name="row[priceTitle]" type="text" value="测试结果">
            
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('完整报告(介绍))')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-priceInfo" class="form-control" name="row[priceInfo]" type="text" value="结果+完整解读">
            
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('完整报告价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
            
        </div>
    </div>
   <div class="form-group">
       
        <label class="control-label col-xs-12 col-sm-2">{:__('完整报告价格(原价)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-original_price" class="form-control" step="0.01" name="row[original_price]" type="number" value="0.00">
        </div>
        
    </div>
    
    
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('超值加购人工解读(标题))')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-priceTitle2" class="form-control" name="row[priceTitle2]" type="text" value="超值加购人工解读">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('超值加购人工解读(介绍))')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-priceInfo2" class="form-control" name="row[priceInfo2]" type="text" value="超值加购人工解读">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
<!--    -->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('超值加购人工解读价格')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-price2" class="form-control" step="0.01" name="row[price2]" type="number" value="0.00">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
<!--   <div class="form-group">-->
<!--       -->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('超值加购人工解读价格(原价)')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-original_price2" class="form-control" step="0.01" name="row[original_price2]" type="number" value="0.00">-->
<!--        </div>-->
<!--        -->
<!--    </div>-->
<!--    -->
<!--    -->
<!--    -->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('赠他购价格')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-price3" class="form-control" step="0.01" name="row[price3]" type="number" value="0.00">-->
<!--            -->
<!--        </div>-->
<!--    </div>-->
    
    
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Banner图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    {if $config.upload.cdnurl}                    
                     <span>
                        <button type="button" id="plupload-third" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                    </span>                   
                    {else/}                     
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    {/if}
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <!--<div class="form-group">-->
    <!--    <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>-->
    <!--    <div class="col-xs-12 col-sm-8">-->
    <!--        <textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>-->
    <!--    </div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('详情介绍图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-content" class="form-control" size="50" name="row[content]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-content" class="btn btn-danger faupload" data-input-id="c-content" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-content"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-content" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-content"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-content"></ul>
        </div>
    </div>
    
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('年龄')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            -->
<!--            <input  id="c-isAge" name="row[isAge]" type="hidden" value="0">-->
<!--            <a href="javascript:;" data-toggle="isAgeer" class="btn-isAgeer" data-input-id="c-isAge" data-yes="1" data-no="0" >-->
<!--                <i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>-->
<!--            </a>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('性别')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            -->
<!--            <input  id="c-isGender" name="row[isGender]" type="hidden" value="0">-->
<!--            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isGender" data-yes="1" data-no="0" >-->
<!--                <i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>-->
<!--            </a>-->
<!--        </div>-->
<!--    </div>-->
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-switch" name="row[switch]" type="hidden" value="0">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
            </a>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('量表推荐')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-recommendMainId" data-source="mental/test_main" data-multiple="true" class="form-control selectpage" data-field="title" name="row[recommendMainId]" type="text" value="">
        </div>
    </div>
    
    
    
    
    <div class="form-group">

        <label class="control-label col-xs-12 col-sm-2">{:__('团测价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-team_price" class="form-control" step="0.01" name="row[team_price]" type="number" value="0.00">
        </div>

    </div>


<!--    <div class="form-group">-->
<!--       -->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('按钮颜色')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input name="row[btn_color]" type="color" class="color">-->
<!--        </div>-->
<!--        -->
<!--    </div>-->
<!--    -->
    
    
    
    
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
